import React from "react";
import {HashRouter,Route,Switch} from 'react-router-dom'
import App from "./App";
import Home from "./home";
import Detail from "./detail";
import RouteLink from "./routeLink";
const BaseRoute=()=>{
    return (<HashRouter>
        <Switch>
            <Route path="/" exact component={App}></Route>
            <Route path="/home" component={Home}></Route>
            <Route path="/detail" component={Detail}></Route>
            <Route render={()=><div><RouteLink></RouteLink><h3>404</h3></div>}></Route>
        </Switch>
    </HashRouter>)
    
}
export default BaseRoute;